package com.sys.entity;

import java.util.Date;

/*
实体类，成员变量与表中的字段一一对应，封装表中一行数据，类中必须有无参构造方法（动态实例化时调用的是该无参构造方法）
 */
public class Card {
    private Integer cid;
    private String cname;
    private String cphone;
    private String cqq;
    /*
       为了保证与表中的字段一一对应，该名字不符合java命名规则
       用小驼峰
     */
    private Date create_time;
    private Date modify_time;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCphone() {
        return cphone;
    }

    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    public String getCqq() {
        return cqq;
    }

    public void setCqq(String cqq) {
        this.cqq = cqq;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getModify_time() {
        return modify_time;
    }

    public void setModify_time(Date modify_time) {
        this.modify_time = modify_time;
    }

    @Override
    public String toString() {
        return "Card{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", cphone='" + cphone + '\'' +
                ", cqq='" + cqq + '\'' +
                ", create_time=" + create_time +
                ", modify_time=" + modify_time +
                '}';
    }
}
